// 在对应的注释下配置，注意注释
// 通用

// 列表

// 订单状态
// 1-待确认，3-部分收货，4-已完成，6-已取消， 5待术后还回 ,8-待质检，9-待收货 ',
export const statusArr = {
  1: '待确认',
  2: '待发货',
  3: '部分发货',
  4: '已完成',
  5: '待术后还回',
  6: '已取消',
  8: '待质检',
  9: '待收货'
}
// export const statusArr = {
//   1: '待确认',
//   2: '待发货',
//   3: '部分发货',
//   4: '已完成',
//   5: '拒绝配送',
//   6: '全部发货'
// }
// 订单状态
// wangjiaqi 11.25 适应性修改
export const ORDER_STATUS = {
  1: '待确认',
  2: '待发货',
  3: '部分收货',
  4: '全部发货',
  5: '已完成',
  6: '拒绝配送',
  7: '已撤销',
  8: '待质检',
  9: '待验收',
  10: '待供应商发货',
  11: '待提交'
}
// 产品大类
export const PRODUCT_CATEGORY = {
  1: '高值',
  2: '低值',
  3: '试剂',
  4: '设备',
  5: '低值'
}
// 手术跟台需求订单列表表头
export const ORDER_COLUMNS = [
  {
    minWidth: '180',
    prop: 'orderCode',
    label: 'M平台销售订单编号'
  },
  {
    minWidth: '180',
    prop: 'deliveryOrderCode',
    label: '配送商销售订单编号'
  },
  {
    prop: 'prodTypeCount',
    minWidth: '100',
    label: '发货品规数'
  },
  {
    prop: 'sendNum',
    minWidth: '100',
    label: '发货数量'
  },
  {
    prop: 'hospitalName',
    minWidth: '180',
    label: '医疗机构',
    'show-overflow-tooltip': true
  },
  {
    prop: 'orderTotalAmount',
    minWidth: '100',
    label: '发货金额'
  },
  {
    prop: 'returnCount',
    minWidth: '120',
    label: '术后退回品规数'
  },
  {
    prop: 'returnAmount',
    minWidth: '100',
    label: '术后退回金额'
  },
  {
    prop: 'orderStatus',
    minWidth: '100',
    label: '订单状态',
    formatter: row => ORDER_STATUS[row.orderStatus]
  },
  {
    prop: 'submitTime',
    width: '180',
    label: '提交时间'
  },
  {
    width: '180',
    prop: 'action',
    label: '操作',
    fixed: 'right'
  }
]
// 列表--列表表头
export const releasecolumns = [{
  prop: 'orderCode',
  label: '平台订单编号', // 1
  width: 170
},
{
  prop: 'operationName', // 1
  label: '拟手术名称',
  width: 200,
  'show-overflow-tooltip': true
},
{
  prop: 'prodTypeCount',
  label: '发货品规数',
  width: 150,
  showTooltipWhenOverflow: true
},
{ prop: 'orderDetailCount', label: '产品数量', width: 130 },
{
  prop: 'deliveryName',
  label: '客户',
  width: 150,
  showTooltipWhenOverflow: true
},
{
  prop: 'orderTotalAmount',
  label: '发货金额',
  width: 150,
  showTooltipWhenOverflow: true
},
{
  prop: 'returnCount',
  label: '术后退回品种数',
  width: 150,
  showTooltipWhenOverflow: true
},
{
  prop: 'returnAmount',
  label: '术后退回金额',
  width: 150
},
{ prop: 'orderDetailCount', label: '产品数量', width: 130 },
{ prop: 'storageAddress', label: '收货地址', 'min-Width': 180, 'show-overflow-tooltip': true },
{ prop: 'contactMan', label: '联系人', width: 130 },
{ prop: 'contactPhone', label: '联系电话', width: 140 },
{
  prop: 'orderStatus',
  label: '订单状态',
  width: 120,
  formatter: row => {
    return statusArr[row.orderStatus]
  }
},

{
  prop: 'submitTime',
  label: '下单时间',
  width: 180
},
{
  prop: 'action',
  label: '操作',
  width: 120,
  fixed: 'right'
}
]
export const tabList = [{
  name: '',
  lab: '全部'
},
{
  name: 1,
  lab: '待确认'
},
{
  name: 2,
  lab: '待发货'
},
// {
//   name: '',
//   lab: '待术后还回'
// },
{
  name: 5,
  lab: '已完成'
},
{
  name: 7,
  lab: '已撤销'
},
{
  name: 6,
  lab: '已拒绝'
}
// {
//   name: 2,
//   lab: '待发货'
// },
// // {
// //   name: 7,
// //   lab: '待术后还回'
// // },
// { lab: '已完成', name: 5 }
]

// (待确认,已取消,待收货,已拒绝详情)
export const headerConfirmedColumns = [{
  label: '平台订单编号',
  key: 'orderCode'
},
{
  label: '订单状态',
  key: 'orderStatus'
},
{
  label: '订下单时间',
  key: 'createdAt'
},
{
  label: '医疗机构',
  key: 'hospitalName'
},
{
  label: '患者姓名',
  key: 'sickName'
},
{
  label: '床号',
  key: 'bedNum'
},
{
  label: '住院号',
  key: 'admissionNumber'
},
{
  label: '性别',
  key: 'sickSex'
},
{
  label: '年龄',
  key: 'sickAge'
},
{
  label: '手术时间',
  key: 'operationDate'
},
{
  label: '生产企业',
  key: 'createEnterprise'
},
{
  label: '手术医生',
  key: 'operationDoctor'
},
{
  label: '手术类型',
  key: 'operationType'
},
{
  label: '售后服务机构',
  key: 'afterServer'
},
{
  label: '开票日期',
  key: 'createdAt'
},
{
  label: '发票号',
  key: '16'
},
{
  label: '地址',
  key: 'address'
},
{
  label: '联系方式',
  key: 'connectPhone'
},
{
  label: '器械师',
  key: '19'
}
]

export const receivingGoodsDetail = [{
  label: '收货单号',
  key: ''
},
{
  label: '收货时间',
  key: ''
}, {
  label: '收货单数量',
  key: ''
}, {
  label: '实际收货数量',
  key: ''
}
]

// 详情列表里面得列表表头
export const DEATIL_INDISE_COLUMNS = [
  {
    label: '序号',
    type: 'index',
    width: 80
  }, {
    prop: 'udi',
    label: 'UDI',
    width: 150
  }, {
    prop: 'barCode',
    label: '主条码',
    width: 150
  }, {
    prop: 'productBatch',
    label: '批号',
    minWidth: 150
  }, {
    prop: 'productDate',
    label: '生产日期',
    width: 170
  }, {
    prop: 'expDate',
    label: '有效期',
    width: 170
  }, {
    prop: 'serialNumber',
    label: '序列号',
    minWidth: 150
  }, {
    prop: 'num',
    label: '数量',
    width: 170
  }, {
    prop: 'entryNumd',
    label: '条码图片',
    width: 150
  }
]
// 展开组件的父列表表头(待确认,已取消,待收货,已拒绝)
export const cardConfirmedColumns = [{
  width: '40',
  prop: 'placeholder',
  fixed: 'left',
  type: 'expand'
},
{
  prop: 'cargo',
  label: '配送明细单号', // 1
  width: 150
},
{
  prop: 'hospitalProductCode',
  label: '医院产品编码',
  'min-width': 150
},
{
  prop: 'hospitalProductName',
  label: '医院产品名称',
  'min-width': 150
},
{
  prop: 'specification',
  label: '规格型号',
  width: 150
},
{
  prop: 'category',
  label: '产品大类',
  width: 150,
  formatter: row => PRODUCT_CATEGORY[row.category]
},
{
  prop: 'batchNumber',
  label: '批号',
  width: 170
},
{
  prop: 'periodDate', // 1
  label: '有效日期',
  width: 150
},
{
  prop: 'purchaseNum',
  label: '配送单数量',
  width: 150
},
{
  prop: 'unit',
  label: '计量单位',
  width: 150
},
{
  prop: 'storageCondition',
  label: '存储条件',
  width: 150
},
{
  prop: 'productProductcCode',
  label: '省平台产品编码',
  width: 150
},
{
  prop: 'itemCode',
  label: 'M平台产品编码',
  width: 150
}
]
// 展开组件的父列表表头(部分收货)
export const cardPartialCollectionColumns = [{
  width: '40',
  prop: 'placeholder',
  fixed: 'left',
  type: 'expand'
},
{
  prop: 'cargo',
  label: '退回明细单号',
  width: 150
},
{
  prop: 'deliveryProductcCode',
  label: '医院产品编码',
  'min-width': 150
},
{
  prop: 'deliveryProductName',
  label: '医院产品名称',
  'min-width': 150
},
{
  prop: 'specification',
  label: '规格型号',
  width: 150
},
{
  prop: 'category',
  label: '产品大类',
  width: 150,
  formatter: row => PRODUCT_CATEGORY[row.category]
},
{
  prop: 'batchNumber',
  label: '批号',
  width: 170
},
{
  prop: 'periodDate',
  label: '有效日期',
  width: 150
},
{
  prop: 'purchaseNum',
  label: '配送单数量',
  width: 150
},
{
  prop: 'unit',
  label: '计量单位',
  width: 150
},
{
  prop: 'storageCondition',
  label: '存储条件',
  width: 150
},
{
  prop: 'productProductcCode',
  label: '省平台产品编码',
  width: 150
},
{
  prop: 'itemCode',
  label: 'M平台产品编码',
  width: 150
}
]

// 展开组件的子列表表头(待确认,已取消,待收货,已拒绝)
export const cardSonConfirmedColumns = [
  {
    label: '序号',
    type: 'index',
    width: 80
  }, {
    prop: 'udi',
    label: 'UDI',
    width: 150
  }, {
    prop: 'barCode',
    label: '主条码',
    minWidth: 150
  }, {
    prop: 'productBatch',
    label: '批号',
    width: 150
  }, {
    prop: 'productDate',
    label: '生产日期',
    width: 170
  }, {
    prop: 'expDate',
    label: '有效期',
    width: 170
  }, {
    prop: 'serialNumber',
    label: '序列号',
    width: 150
  }, {
    prop: 'num',
    label: '数量',
    width: 170
  }, {
    prop: 'entryNumd',
    label: '条码图片',
    width: 150
  }
]
// 展开组件的子列表表头(部分收货)
export const cardSonPartialCollectionColumns = [
  {
    label: '序号',
    type: 'index',
    width: 80
  }, {
    prop: 'udi',
    label: 'UDI',
    width: 150
  }, {
    prop: 'barCode',
    label: '主条码',
    width: 150
  }
]
// 展开组件的子列表表头(已收货)
export const cardSonCompletedColumns = [
  {
    label: '序号',
    type: 'index',
    width: 80
  }, {
    prop: 'udi',
    label: 'UDI',
    width: 150
  }, {
    prop: 'barCode',
    label: '主条码',
    minWidth: 150
  }, {
    prop: 'productBatch',
    label: '批号',
    width: 150
  }, {
    prop: 'productDate',
    label: '生产日期',
    width: 170
  }, {
    prop: 'expDate',
    label: '有效期',
    width: 170
  }, {
    prop: 'serialNumber',
    label: '序列号',
    width: 150
  }, {
    prop: 'num',
    label: '数量',
    width: 170
  }, {
    prop: 'entryNumd',
    label: '条码图片',
    width: 150
  }
]

// 弹框列表表头
export const dialogColumns = [{
  type: 'index',
  label: '序号',
  width: 40
},
{
  prop: 'platCode',
  label: '产品通用编码',
  width: 200
},
{
  prop: 'companyCode',
  label: '产品名称',
  width: 200,
  'show-overflow-tooltip': true
},

{
  prop: 'prodNameCn',
  label: '产品名称(英)',
  width: 120,
  'show-overflow-tooltip': true
},
{
  prop: 'prodNameEn',
  label: '规格',
  width: 120,
  'show-overflow-tooltip': true
},
{
  prop: 'registNo',
  label: '单位',
  width: 120,
  'show-overflow-tooltip': true
},
{
  prop: 'bigType',
  label: '数量',
  width: 120,
  'show-overflow-tooltip': true
},
{
  prop: 'status',
  label: '生产批号',
  width: 120,
  'show-overflow-tooltip': true
},
{
  prop: 'Ordertime',
  label: '生产日期',
  width: 120
},
{
  prop: 'registNo',
  label: '有效期',
  width: 120,
  'show-overflow-tooltip': true
},
{
  prop: 'bigType',
  label: '注册证号/备案证号',
  width: 120,
  'show-overflow-tooltip': true
},
{
  prop: 'status',
  label: '生产企业',
  width: 120,
  'show-overflow-tooltip': true
},
{
  prop: 'Ordertime',
  label: '生产企业许可证号',
  width: 120
},
{
  prop: 'ops',
  label: '存储条件',
  'min-width': 120,
  fixed: 'right'
}
]
// 弹框列表详情
export const dialogdetails = [{
  label: '开票员',
  key: ''
},
{
  label: '发货员',
  key: ''
},
{
  label: '复核员',
  key: ''
},
{
  label: '签收员',
  key: ''
},
{
  label: '地址',
  key: ''
},
{
  label: '电话',
  key: ''
}
]
// 父子级列表标题(发货列表)
export const DeliverGoodsTitle = [
  {
    label: '配送单号',
    key: 'deliveryCode'
  },
  {
    label: '配送时间',
    key: 'createdAt'
  },
  {
    label: '配送单数量',
    key: 'sendNumCount'
  },
  {
    label: '订单金额',
    key: 'sumPrice'
  }
]
// 父子级列表标题(退回)
export const ReturnTitle = [
  {
    label: '术后退回单号',
    key: 'operateReturnCode'
  },
  {
    label: '退回时间',
    key: 'createdAt'
  },
  {
    label: '退回单数量',
    key: 'operateReturnNum'
  },
  {
    label: '退回金额',
    key: 'operateReturnAmount'
  }
]
// 质检

// 验收
export const productsColumns = [{
  width: '60',
  type: 'index',
  label: '序号'
},
{
  width: '220',
  prop: 'bigType.value',
  label: '产品大类'
},
{
  width: '150',
  prop: 'brandName.value',
  label: '品牌'
},
{
  width: '150',
  prop: 'categoryCode.value',
  label: '最末级类目编码'
},
{
  width: '150',
  prop: 'categoryName.value',
  label: '最末级类目名称'
},
{
  width: '150',
  prop: 'chName.value',
  label: '产品名称（中）'
},
{
  width: '150',
  prop: 'enName.value',
  label: '产品名称（英）'
},
{
  width: '120',
  prop: 'code.value',
  label: '产品编码'
},
{
  width: '120',
  'min-width': '120',
  prop: 'companyName.value',
  label: '生产厂家'
},
{
  width: '220',
  prop: 'itemDescription.value',
  label: '产品说明'
},
{
  width: '120',
  prop: 'itemNo.value',
  label: '货号'
},
{
  width: '120',
  prop: 'killBacteria.value',
  label: '是否灭菌'
},
{
  width: '120',
  prop: 'licensorCode.value',
  label: '社会信用代码'
},
{
  width: '120',
  prop: 'licensorName.value',
  label: '授权商名称'
},
{
  width: '120',
  prop: 'manageType.value',
  label: '管理类别'
},
{
  width: '140',
  prop: 'model.value',
  label: '型号'
},
{
  width: '120',
  prop: 'productionAddr.value',
  label: '生产地址'
},
{
  width: '120',
  prop: 'qualification.value',
  label: '是否资质校验'
},
{
  width: '140',
  prop: 'registrationNumber.value',
  label: '注册证号/备案证号'
},
{
  width: '120',
  prop: 'spec.value',
  label: '规格'
},
{
  width: '120',
  prop: 'storageCondition.value',
  label: '存储条件'
},
{
  width: '120',
  prop: 'temperatureRange.value',
  label: '存储温度区间'
},
{
  width: '120',
  prop: 'unit.value',
  label: '最小单位'
},
{
  width: '120',
  prop: 'unitPack.value',
  label: '包装单位'
},
{
  width: '120',
  prop: 'options',
  label: '操作',
  fixed: 'right'
}
]

export const baseInfoFormMap = [{
  key: 'a',
  label: '订单编号'
},
{
  key: 'b',
  label: '订单时间'
},
{
  key: 'c',
  label: '采购方名称'
},
{
  key: 'd',
  label: '制单人'
},
{
  key: 'e',
  label: '仓库地址'
},
{
  key: 'f',
  label: '联系人'
},
{
  key: 'g',
  label: '联系电话'
},
{
  key: 'h',
  label: '手术医生'
},
{
  key: 'i',
  label: '主要诊断(术式)'
},
{
  key: 'j',
  label: '手术间'
},
{
  key: 'k',
  label: '患者姓名'
},
{
  key: 'l',
  label: '患者年龄'
},
{
  key: 'm',
  label: '手术时间'
},
{
  key: 'n',
  label: '患者性别'
},
{
  key: 'o',
  label: '住院号'
},
{
  key: 'p',
  label: '病区'
},
{
  key: 'q',
  label: '床号'
}
]
// 收获
